﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ConsultaCep.aspx.cs" Inherits="RDev.Correios.UserInterface.View.ConsultaCep" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style4
        {
            width: 12%;
        }
        .style5
        {
            width: 30%;
        }
        .style6
        {
            width: 12%;
        }
        .style7
        {
            width: 29%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <h2>
            Consultar Cep - Correios
        </h2>
        <br />
        <table style="width: 700px" border="0">
            <tr>
                <td colspan="1" class="style4">
                    <asp:Label runat="server" Text="Cep: " />
                </td>
                <td colspan="1" class="style5">
                    <asp:TextBox ID="TextBoxCep" Width="90%" runat="server" />
                </td>
                <td colspan="2">
                    <div align="left">
                        <asp:Button ID="ButtonConsultar" Width="30%" Height="100%" Text="Consultar Cep" runat="server"
                            OnClick="ButtonConsultarClick" />
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:Label runat="server" Text="Logradouro: " />
                </td>
                <td class="style5">
                    <asp:TextBox ID="TextBoxLogradouro" Width="90%" runat="server" ReadOnly="True" />
                </td>
                <td class="style6">
                    <asp:Label runat="server" Text="Bairro: " />
                </td>
                <td class="style7">
                    <asp:TextBox ID="TextBoxBairro" Width="90%" runat="server" ReadOnly="True" />
                </td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:Label runat="server" Text="Cidade: " />
                </td>
                <td class="style5">
                    <asp:TextBox ID="TextBoxCidade" runat="server" Width="90%" ReadOnly="True" />
                </td>
                <td class="style6">
                    <asp:Label runat="server" Text="Estado: " />
                </td>
                <td class="style7">
                    <asp:TextBox ID="TextBoxEstado" Width="90%" runat="server" ReadOnly="True" />
                </td>
            </tr>
        </table>
        <asp:Label runat="server" Text="" ID="LabelMensagem" Style="color: #FF0000; font-weight: 700;  text-align: center"></asp:Label>
        <br />
        <br />
    </p>
</asp:Content>
